//
//  HXTCardBalanceVC.m
//  掌上宏力
//
//  Created by admin on 2017/5/22.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "HXTCardBalanceVC.h"
#import "CardBalanceModel.h"

static CGFloat Lab_H = 40;
static CGFloat Lab_W = 300;

@interface HXTCardBalanceVC ()

@end

@implementation HXTCardBalanceVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"余额、积分";
    [self createBalanceView];
}

-(void)createBalanceView{
    NSString *moneyStr = [NSString stringWithFormat:@"余        额：%@ 元",self.cardBalance.totalMoney];
    UILabel *moneyL = [Factory createLabelWithTitle:moneyStr frame:CGRectMake(LeftDis, 5, Lab_W, Lab_H) fontSize:16];
    [self.view addSubview:moneyL];
    
    NSString *consuMoneyStr = [NSString stringWithFormat:@"可用余额：%@ 元",self.cardBalance.consumeMoney];
    UILabel *consuMoneyL = [Factory createLabelWithTitle:consuMoneyStr frame:CGRectMake(LeftDis, moneyL.bottom, Lab_W, Lab_H) fontSize:16];
    [self.view addSubview:consuMoneyL];
    
    NSString *jifenStr = [NSString stringWithFormat:@"积        分：%@",self.cardBalance.totalJifen];
    UILabel *jifenL = [Factory createLabelWithTitle:jifenStr frame:CGRectMake(LeftDis, consuMoneyL.bottom, Lab_W, Lab_H) fontSize:16];
    [self.view addSubview:jifenL];
    
    NSString *consumjifenStr = [NSString stringWithFormat:@"可用积分：%@",self.cardBalance.consumeJifen];
    UILabel *consumjifenL = [Factory createLabelWithTitle:consumjifenStr frame:CGRectMake(LeftDis, jifenL.bottom, Lab_W, Lab_H) fontSize:16];
    [self.view addSubview:consumjifenL];
}


@end
